#ifndef FILE_SCAN_H
#define FILE_SCAN_H

#include "typedef.h"


//typedef struct
//{
//	u8 device;
//	u16 filenum;
//
//}ALARMINFO;




typedef struct _SCANINFO 
{	
	s8  activeItem; 	
	u16 fileCount;
	s16 itemNum;
}SCANINFO;

typedef struct _DIR_RECODE
{
	u8  attribute;
	u32 sclust;
}DIR_RECODE;

typedef struct _DIR_DEEPTH
{
	u8  deepth;
	u32 sclust[8];
}DIR_DEEPTH;


#define  LCD_HIGHT			64
#define  LCD_WIDTH			128
#define  ITEM_HIGHT			16
#define  MAX_ITEM_COUNT		(LCD_HIGHT/ITEM_HIGHT)
#define  ICON_WIDTH			16

extern DIR 	 xdata  * gDir ;
extern DIRINFO  xdata  *gDirInfo ;
extern SCANINFO xdata  *gScanInfo;
extern u16 xdata given_file_number;
u8 fs_dir(u8 device);
void fscan_init(u8 _xdata * buf);

extern u8 _xdata id3_tag_buf2[] ;

#endif